This resource address can be used to update the properties for the specified task.
Response Headers | |
---|---|
Content-type | The MIME type of the data in the response
body. Depending upon the value of the format parameter or Accept header, either
application/xml or application/json . |
Upon success, MarkLogic Server returns status code 204 (No Content). If the payload is malformed or the privilege does not exist, a status code of 400 (Bad Request) is returned. A status code of 401 (Unauthorized) is returned if the user does not have the necessary privileges.
manage-admin
and security
rolehttp://marklogic.com/xdmp/privileges/manage-admin
http://marklogic.com/xdmp/privileges/manage
http://marklogic.com/xdmp/privileges/switch-task-user
manage
role plus one of the following granular privileges:
http://marklogic.com/xdmp/privileges/admin/group
http://marklogic.com/xdmp/privileges/admin/group/{group-ID}
http://marklogic.com/xdmp/privileges/admin/group/scheduled-task
http://marklogic.com/xdmp/privileges/admin/group/scheduled-task/{group-ID}
http://marklogic.com/xdmp/privileges/switch-task-user
The security
role is required to set the task-user
property.
task-enabled
. The rest of
properties listed below are read-only. Note: The properties described here are
for XML payloads. In general they are the same for JSON, with the exception that, in JSON,
task-days
is expressed in singular form. For example, in JSON,
task-days
is instead task-day
and the format is as shown in the
following example.
scheduled-task-relations
This is a complex structure with the following children:
relation
This is a complex structure with the following children:
qualifiers
This is a complex structure with the following children:
qualifier
This is a complex structure with the following children:
uriref
typeref
idref
nameref
uriref
typeref
roleref
idref
nameref
relation-id
task-id
task-enabled
task-path
task-root
task-type
task-period
task-month-day
task-days
This is a complex structure with the following children:
task-day
task-start-date
task-start-time
task-timestamp
task-user
task-priority
curl -X PUT --anyauth -u admin:admin -H "Content-Type:application/json" \ -d '{"task-enabled": false}' \ http://localhost:8002/manage/v2/tasks/15443907690397240566/properties?group-id=Default ==> Changes the "task-enabled" of the task, "15443907690397240566," to "false".